package Expe12;

import java.util.Scanner;
public class T4 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        try {
            System.out.println("请输入课程代号（1-3之间的数字）：");
            int num = in.nextInt();
            switch (num){
                case 1:
                    System.out.println("数学");
                    break;
                case 2:
                    System.out.println("英语");
                    break;
                case 3:
                    System.out.println("JAVA");
                    break;
            }
        }
        catch (Exception e){
            System.out.println("输入不为数字！");
        }
        finally {
            System.out.println("欢迎提出建议！");
        }
    }
}
